﻿using System;
using System.Xml.Serialization;
using System.Web.Script.Serialization;

using Fuse8.ContentManagementFramework.SystemFacade.Extensions;

namespace Fuse8.ContentManagementFramework.Domain
{
    public partial class CmsPageControl
    {
        #region Properties

        [XmlIgnore]
        [ScriptIgnore]
        public PageControlTypeKind CommonPageControlType
        {
            get
            {
                return (PageControlTypeKind)Enum.ToObject(typeof(PageControlTypeKind), PageControlTypeKey);
            }
        }

        [XmlIgnore]
        [ScriptIgnore]
        public string PageControlTypeDescription
        {
            get
            {
                return CommonPageControlType.GetDescription();
            }
        }

        [XmlIgnore]
        [ScriptIgnore]
        public string PageControlContent { get; set; }

        #endregion
    }
}
